class Equip_Props
  attr_reader   :id
  attr_reader   :equip_type #1=Weapon 2=Armor
  attr_reader   :plus_type
  attr_reader   :value
  attr_reader   :fronts
  attr_reader   :suffixs
  FRONTS = ['最大生命值', '攻击力', '暴击率']
  SUFFIXS = ['点', '点', '%']
  VALUE_MIN = [30, 5, 2]
  VALUE_MAX = [150, 10, 8]
  MAXHP = 0
  ATK = 1
  STR = 2
  def initialize(id, equip_type, plus_type, value)
    @id = id
    @equip_type = equip_type
    @plus_type = plus_type
    @value = value
  end
  def to_s
    index = @plus_type
    str = Equip_Props::FRONTS[index] + @value.to_s + Equip_Props::SUFFIXS[index]
    return str
  end
end
